﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OMModel
{
    public class NormalProductInfo{
        private string _productId;
        private string _name;
        private int _rate;
        private double _price;
        private string _type;
        private long _points;
        private string _imgName;
        private string _desc;
        private long _amount;
        private string _quantity;
        private string _taste;
        private string _status;
        private bool _canOutGoing;
       
        public NormalProductInfo(){
            _amount = 1;
            _canOutGoing = false;
            _rate = 0;
            _points = 0;
        }

        public NormalProductInfo(string productId, string name, int rate, double price, string type, long points, string imgName, string desc, long amount, string quantity, string taste, string status, bool canOutGoing){
            _productId = productId;
            _name = name;
            _rate = rate;
            _price = price;
            _type = type;
            _points = points;
            _imgName = imgName;
            _desc = desc;
            _amount = amount;
            _quantity = quantity;
            _taste = taste;
            _status = status;
            _canOutGoing = canOutGoing;
        }

        public string ProductId{
            get { return _productId; }
            set { _productId = value; }
        }

        public string Name{
            get { return _name; }
            set { _name = value; }
        }

        public int Rate{
            get { return _rate; }
            set { _rate = value; }
        }

        public double Price{
            get { return _price; }
            set { _price = value; }
        }

        public string Type{
            get { return _type; }
            set { _type = value; }
        }

        public long Points{
            get { return _points; }
            set { _points = value; }
        }

        public string ImgName{
            get { return _imgName; }
            set { _imgName = value; }
        }

        public string Desc{
            get { return _desc; }
            set { _desc = value; }
        }

        public long Amount{
            get { return _amount; }
            set { _amount = value; }
        }

        public string Quantity{
            get { return _quantity; }
            set { _quantity = value; }
        }

        public string Taste{
            get { return _taste; }
            set { _taste = value; }
        }

        public string Status{
            get { return _status; }
            set { _status = value; }
        }

        public bool CanOutGoing{
            get { return _canOutGoing; }
            set { _canOutGoing = value; }
        }
    }
}
